<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>为您估价</title>
    <link rel="stylesheet" type="text/css" href="./css/Valuation.css">
</head>
<body>
    <div class="top">
        <p style="display: flex;justify-content: space-between;margin-top: 8%;">

            <span onclick="td()">
                <img rel="prefetch" src="images/xiaoyuhao.png" alt="" width="15%" style="margin-left:24%;margin-top: 3%;">
            </span>

            <span style="margin-left: 16%; font-size: 90%;font-weight: bold;width:70%" >为您估价</span>

            <span>
                <img rel="prefetch" src="images/InForm.png" alt="" width="16%" style="margin-left: 58%;margin-top: 3%;">
            </span>

        </p>
    </div>
    <div class="container">
        

        <div class="block">
            <ul>  
                <li class="left">
                    <span>卖车地点</span>
                </li>
                <li class="right">
                    <a href="#">深圳</a>
                    <img rel="prefetch" src="images/dayuhao.png" alt="">
                </li>
            
                <hr/>

                <li class="left">
                    <span>车型</span>
                </li>
                <li class="right">
                    <a href="#">请选择</a>
                    <img rel="prefetch" src="images/dayuhao.png" alt="">
                 </li>
                <hr />

                <li class="left">
                    <span>上牌时间</span>
                </li>
                <li class="right">
                    <a href="#">请选择</a>
                    <img rel="prefetch" src="images/dayuhao.png" alt="">
                </li>
                <hr/>

                <li class="left">
                    <span>行驶里程 (万公里)</span>
                </li>
                <li class="right">
                    <a href="#">请选择</a>
                    <img rel="prefetch" src="images/dayuhao.png" alt="">
                </li>
                <hr/>

                <li class="left">
                    <span>联系方式</span>
                </li>
                <li class="right">
                    <a href="#">请选择</a>
                    <img rel="prefetch" src="images/dayuhao.png" alt="">
                </li>
                <hr/>

                <li class="left">
                    <span>卖出意向</span>
                </li>
                <li class="right">
                    <a href="#">请选择</a>
                    <img rel="prefetch" src="images/dayuhao.png" alt="">
                </li>
            </ul>
        </div>
        
        <div class="block bottom bottom_color" >
            <a href="#">开始估计</a>
        </div>

           <p class="bottom" style="color: gray;">*您的爱车每天约贬值0.03%</p>
    </div>

    <script>
        var aTags = document.getElementsByTagName("a");
        console.log(123);
        console.log(aTags);
        for (var i = 0; i < aTags.length; i++) {
          aTags[i].addEventListener("click", function() {
            alert("别点了，就到这里了！");
          });
        }
        function td(){
            if (window.frames.length != parent.frames.length) {
                console.log('有父级页面');
                window.history.back()
            }else{
                console.log('无父级页面')
                window.location.href='./index.html'
            }
        }
    </script>
</body>
</html>